home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / PredatorPrey / Cursors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  992 b   |  28 lines  |  [TEXT/KAHL]

  1. /* Cursors.h */
  2.  
  3. #ifndef __CU__
  4. #define __CU__
  5.  
  6. extern RgnHandle        cursorRgn;
  7. extern CursHandle        watch;
  8.  
  9. /*----------*/
  10. void LoadCursors        (void);
  11. void ShapeCursor        (void);
  12. /* The following routines implement a simple spinning cursor mechanism.                    */
  13. /* First, set up your application's resource file with the appropriate resources.        */
  14. /* Your code should then call this unit as follows:                                        */
  15. /*        StartBusyCursor (aCurID);                                                        */
  16. /*        ...time-intensive code...    <= contains frequent calls to SpinCursor            */
  17. /*                                        and/or SpinBackwards                            */
  18. /*        StopBusyCursor ();                                                                */
  19. /*                                                                                        */
  20. /* Note: StartBusyCursor/StopBusyCursor are not currently designed to be nestable,        */
  21. /* that is, "time-intensive code" above should not contain any calls to StartBusyCursor    */
  22. /* or StopBusyCursor.                                                                    */
  23. void StartBusyCursor    (short        aCurID);
  24. void SpinCursor            (void);
  25. void SpinBackwards        (void);
  26. void StopBusyCursor        (void);
  27.  
  28. #endif    /*    __CU__    */